/* 全局样式 */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
}

.vh-100 {
    height: 100vh;
}

/* 聊天容器 */
#chatContainer {
    background-color: #fff;
    scroll-behavior: smooth;
}

/* 欢迎消息 */
.welcome-message {
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 消息样式 */
.message {
    display: flex;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-in-out;
}

.message-user {
    justify-content: flex-end;
}

.message-ai {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    position: relative;
    line-height: 1.5;
}

.message-user .message-content {
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 5px;
}

.message-ai .message-content {
    background-color: #f1f3f5;
    color: #343a40;
    border-bottom-left-radius: 5px;
}

/* 代码块样式 */
pre {
    background-color: #282c34;
    color: #abb2bf;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0.5rem 0;
}

code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
}

/* 输入区域 */
.chat-input-area {
    background-color: #fff;
}

#userInput {
    resize: none;
    border: 1px solid #ced4da;
    transition: all 0.3s;
}

#userInput:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 设置面板 */
.settings-panel {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
}

.settings-panel.active {
    transform: translateX(0);
}

@media (min-width: 768px) {
    .settings-panel {
        position: relative;
        transform: none;
    }
}

/* 加载动画 */
.typing-indicator {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.typing-indicator .dot {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #343a40;
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.7);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 